﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CNKI.Graduate.Framework.Db
{
    public class SqlParamsData
    {

        public SqlParamsData()
        {
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="paraName">参数名称</param>
        /// <param name="paraValue">参数值</param>
        /// <param name="paraType">参数类型</param>
        /// <param name="paraDirection">参数方向</param>
        public SqlParamsData(string paraName, object paraValue, DbType paraType, ParameterDirection paraDirection)
        {
            this.ParaName = paraName;
            this.ParaValue = paraValue;
            this.ParaType = paraType;
            this.ParaDirection = paraDirection;

        }
        private string _paraName;
        private object _paraValue;
        private DbType _paraType;
        private ParameterDirection _paraDirection;

        /// <summary>
        /// 参数名称
        /// </summary>
        public string ParaName
        {
            get { return _paraName; }
            set { _paraName = value; }
        }
        /// <summary>
        /// 参数值
        /// </summary>
        public object ParaValue
        {
            get { return _paraValue; }
            set { _paraValue = value; }
        }
        /// <summary>
        /// 参数类型
        /// </summary>
        public DbType ParaType
        {
            get { return _paraType; }
            set { _paraType = value; }
        }
        /// <summary>
        /// 参数方向
        /// </summary>
        public ParameterDirection ParaDirection
        {
            get { return _paraDirection; }
            set { _paraDirection = value; }
        }
    }
}
